<template>
  <div class="tuijian" >
    <div>{{ chlidTitile }}</div>
    <div v-if="dataLists!=null">
      <div v-for="item in dataLists" :key="item.comic_id" @click="changeManhuua(item.comic_id ==undefined?item.id:item.comic_id)">
        <div >{{ chlidTitile=='推荐'? item?.style[0] :'' }}</div>
        <div><img :src="item?.horizontal_cover+'@300w.jpg'" alt="" /></div>
        <div>
          <div>{{ item.org_title ==undefined?item.title:item.org_title}}</div>
          <div>
            <span></span>
            <span></span>
            <span></span>
          </div>
        </div>
      </div>
      <span>{{ homeMsg }}</span>
    </div>
    <!-- <div v-else>
      没有相关资源哦！
    </div> -->
  </div>
</template>

<script>
export default {
  props: {
    dataLists: {
      type: Array,
    },
    chlidTitile:{
      type: String,
    },
    homeMsg:{
      type:String
    }
  },
  methods:{
    changeManhuua(id){
        this.$emit('change-manhuua', id);
    }
    
  },
  created(){
  }
 
 
};
</script>

<style lang="less" scoped>
.tuijian {
  color: @color4;
  min-height: 500rem;
  > div:nth-child(1) {
    text-align: left;
    margin-left: 25rem;
    font-size: 18rem;
    margin-top: 25rem;
  }
  > div:nth-child(2) {
    width: 350rem;
    text-align: center;
    text-align: left;
    margin-left: 25rem;
    font-size: 18rem;
    > div {
      > div:nth-child(1) {
        position: relative;
        left: 15rem;
        top: 35rem;
        width: 80rem;
        height: 26rem;
        background-color: @color3;
        border-radius: 15rem;
        display: flex;
        align-items: center;
        justify-content: space-around;
        font-size: 14rem;
        color: @color1;
        img {
          width: 13rem;
          height: 13rem;
          margin-left: 5rem;
        }
      }
      > div:nth-child(2) {
        width: 325rem;
        height: 200rem;
        img {
          width: 325rem;
          height: 200rem;
          border-radius: 10rem;
        }
      }
      > div:nth-child(3) {
        width: 325rem;
        font-size: 14rem;
        margin-top: 5rem;
        display: flex;
        align-items: center;
        、 > div:nth-child(2) {
          display: flex;
          position: absolute;
          right: 35rem;
          span {
            display: block;
            width: 5rem;
            height: 5rem;
            border-radius: 50%;
            margin-left: 5rem;
            background-color: @color1;
          }
        }
      }
      > div:nth-child(4) {
        margin-top: 6rem;
        font-size: 14rem;
        color: #8d8d8d;
      }
    }
  }
}
</style>